<?php
$filelist = scandir_r($projectdir);

$bundles = dir_bundle($filelist,$projectdir,$maxsize);

$tars = array();
foreach ($bundles as $k => $bundle) $tars[] = make_tar($bundle,$name.'_'.$k,$repodir,$projectdir);

echo '<pre>'.make_lst($tars,'install',$repodir).'</pre>';
?>